<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get("/deg",'DegController@deg');
Route::post("/deg_add",'DegController@deg_add');
Route::get("/deg_table",'DegController@deg_table');

Route::get("/sub",'SubController@sub');
Route::post("/sub_add",'SubController@sub_add');
Route::get("/sub_table",'SubController@sub_table');

Route::get("/teacher",'TeacherController@teacher');
Route::post("/teacher_add",'TeacherController@teacher_add');
Route::get("/teacher_table",'TeacherController@teacher_table');
Route::get("/teacher_delete",'TeacherController@teacher_delete');

Route::get("/class",'ClassController@class');
Route::post("/class_add",'ClassController@class_add');


